<template>
  <div class="content">
    <h2>showInfo组件</h2>
  </div>
</template>

<script>
  export default {
    // methods: {
    //   showInfo() {
    //     console.log("showInfo被调用了")
    //   }
    // }
    setup() {
      function showInfo() {
        console.log("showInfo被调用了")
      }
      return {
        showInfo
      }
    }
  }
</script>

<style scoped>
</style>